package com.shine.icis.hbean;

import java.io.Serializable;
import java.text.DecimalFormat;

public class DataCheckR11 implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662405149335236166L;
	
	private DecimalFormat doubleFormat = new DecimalFormat("0.00");
	private int id;
	private int tradeDate;//交易日期
	private String depCode;//证券公司确定的营业部代码
	private String depName;//营业部名称
	private String fundAcct;//客户资金账户账号
	private double currFundBal;//发生金额
	private double lastFundBal;//清算金额
	private double exchAmt;//印花税
	private double interestAmt;//过户费
	private double bondExtrAmt;//手续费
	private double totalChgBal;//其他费用1
	private double totalChgBal2;//其他费用2
	private double totalChgBal3; //其他费用3
	private double discAmt;//差额
	private int sjrq;//

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getTradeDate() {
		return tradeDate;
	}
	public void setTradeDate(int tradeDate) {
		this.tradeDate = tradeDate;
	}
	public String getDepCode() {
		return depCode;
	}
	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getFundAcct() {
		return fundAcct;
	}
	public void setFundAcct(String fundAcct) {
		this.fundAcct = fundAcct;
	}
	public double getCurrFundBal() {
		return currFundBal;
	}
	public String getCurrFundBalText() {
		return doubleFormat.format(currFundBal);
	}	
	public void setCurrFundBal(double currFundBal) {
		this.currFundBal = currFundBal;
	}
	public double getLastFundBal() {
		return lastFundBal;
	}
	public String getLastFundBalText() {
		return doubleFormat.format(lastFundBal);
	}
	public void setLastFundBal(double lastFundBal) {
		this.lastFundBal = lastFundBal;
	}
	public double getExchAmt() {
		return exchAmt;
	}
	public String getExchAmtText() {
		return doubleFormat.format(exchAmt);
	}
	public void setExchAmt(double exchAmt) {
		this.exchAmt = exchAmt;
	}
	public double getInterestAmt() {
		return interestAmt;
	}
	public String getInterestAmtText() {
		return doubleFormat.format(interestAmt);
	}
	public void setInterestAmt(double interestAmt) {
		this.interestAmt = interestAmt;
	}
	public double getBondExtrAmt() {
		return bondExtrAmt;
	}
	public String getBondExtrAmtText() {
		return doubleFormat.format(bondExtrAmt);
	}
	public void setBondExtrAmt(double bondExtrAmt) {
		this.bondExtrAmt = bondExtrAmt;
	}
	public double getTotalChgBal() {
		return totalChgBal;
	}
	public String getTotalChgBalText() {
		return doubleFormat.format(totalChgBal);
	}
	public void setTotalChgBal(double totalChgBal) {
		this.totalChgBal = totalChgBal;
	}
	public double getTotalChgBal2() {
		return totalChgBal2;
	}
	public String getTotalChgBal2Text() {
		return doubleFormat.format(totalChgBal2);
	}
	public void setTotalChgBal2(double totalChgBal2) {
		this.totalChgBal2 = totalChgBal2;
	}
	public double getTotalChgBal3() {
		return totalChgBal3;
	}
	public String getTotalChgBal3Text() {
		return doubleFormat.format(totalChgBal3);
	}
	public void setTotalChgBal3(double totalChgBal3) {
		this.totalChgBal3 = totalChgBal3;
	}
	public double getDiscAmt() {
		return discAmt;
	}
	public String getDiscAmtText() {
		return doubleFormat.format(discAmt);
	}
	public void setDiscAmt(double discAmt) {
		this.discAmt = discAmt;
	}
	public int getSjrq() {
		return sjrq;
	}
	public void setSjrq(int sjrq) {
		this.sjrq = sjrq;
	}
	
	public String getFormatTradeDate() {
		StringBuffer date = new StringBuffer(Integer.toString(tradeDate));
		date.insert(6, "-").insert(4, "-");
		return date.toString();
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final DataCheckR11 other = (DataCheckR11) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
	
}
